package com.lu.integrate.message.center.model.domain;

import com.lu.integrate.message.center.model.enums.MessageQueueLogsStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description 消息队列中心-队列消费处理
 * @date 2023/2/13 17:55
 */
@Data
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class MessageCenterQueueConsumeDo {

    /**
     * 配置id
     */
    private Long configId;
    /**
     * 处理类
     */
    private String className;
    /**
     * 处理方法
     */
    private String methodName;
    /**
     * @see MessageQueueLogsStatusEnum
     */
    private Integer status;

    /**
     * 消息处理批次大小-每次查询处理消息的数量
     */
    private Integer batchSize;

    public MessageCenterQueueConsumeDo(){
        this.batchSize = 20;
    }
    
}
